#ifndef	FDINFOS_HPP_
#define	FDINFOS_HPP_

# include       <sys/types.h>
# include       <sys/time.h>
# include       <sys/socket.h>
# include       <netinet/in.h>
# include       <arpa/inet.h>

#include	"Connected.hpp"

# define	Fd_Set		fd_set

class FdInfos
{
  Fd_Set	Readf;
  Fd_Set	Writef;

public:
  Fd_Set	&GetReadf(void);
  Fd_Set	&GetWritef(void);

  int  FdIsset(int	fd,
	       Fd_Set	&fdSet);
  
  void	FdZero(Fd_Set	&Readf);
  void	FdSet(int	fd,
	      Fd_Set	&fdSet);
  
  int	InitFdClient(int	fd);
  int	InitFdServer(int	fd,
		     std::list<Connected *> Co);
};

#endif	/* FDINFOS_HPP_ */
